#ifndef COLORTABLEWIDGET_H
#define COLORTABLEWIDGET_H

#include <QWidget>


class QTableWidgetItem;
namespace Ui {
class ColorTableWidget;
}

class ColorTableWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ColorTableWidget(QWidget *parent = nullptr);
    ~ColorTableWidget();

    QList<QTableWidgetItem*> mapToItems(const QVariantMap &map);
    QList<QTableWidgetItem*> newItems(int id, QString name, QString pinyin, const QColor &color, QString RGB, QString CMYK, QString Hex);
    QTableWidgetItem* newItem();
    QTableWidgetItem* newItem(int i);
    QTableWidgetItem* newItem(QString text);
    QTableWidgetItem* newItem(QColor color);


private:
    Ui::ColorTableWidget *ui;
};

#endif // COLORTABLEWIDGET_H
